// 引入request
import request from '../utils/request'
// 定义登录的参数类型
export interface UserType {
    name: string;
    password: string;
}
// 导出登录方法
export function loginIt(data: any) {
    return request.post("/api/callComponent/login/doLogin?version=2.0", data, {
        headers: {
            "REQ-TIME": "20230412180457",
            "TRANSACTION-ID": "374eb1c6-c8a9-45c3-89e7-0c638acb67a8",
            "USER-ID": "-1",
            "APP-ID": "8000418004",
            "Cookie": "SESSION=MzFjNDMyMzEtZDkxZi00N2JiLWE3NGUtMjFjYTlkZTEyMmI4; Hm_lvt_adedae9bc250561cc17e96dc1fb46079=1680855160,1681113294,1681213875,1681292989; _java110_token_=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqYXZhMTEwIiwidXNlck5hbWUiOiJ3dXh3IiwianRpIjoiNTQ4MzZlYmI5NGQxNGE2N2EwOWIxOGMzOWExZWI1ZjQifQ.hNWxasR5bjGTInuWTV90IJBZ8yzY-iMfgBuRTlkdDTk; Hm_lpvt_adedae9bc250561cc17e96dc1fb46079=1681293421"
        }
    })
}
// 验证码接口
export function getCodeImg() {
    return request.get("/api/callComponent/validate-code/generateValidateCode?_uId=-1")
}